import { VFC, useState } from 'react';
import {Drawer} from 'antd';
import { DragContainer } from 'zw-components';
type AddFormProps = {
    className?: string;
};

export const AddForm: VFC<AddFormProps> = (props) => {
    const [visible, setVisible] = useState(false);
    const onClose = () => {
        setVisible(false)
    }
    return (
        <>
            <div className={props.className} onClick={() => setVisible(true)}>
                添加
            </div>
            <Drawer title="上传图片" placement="top" onClose={onClose} visible={visible}>
                <DragContainer></DragContainer>
            </Drawer>
        </>
    );
}